﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Pigmalion.BusinessEntities;
using Pigmalion.BusinessLogic;

namespace Pigmalion.Presenter.ClientePresenter
{
    public partial class ClientePresenter
    {
        private readonly IClienteView _view;
        private IClienteBL clienteBl;

        public ClientePresenter(IClienteView view)
        {
            _view = view;
            clienteBl = new ClienteBL();
        }

        public void CargarClientes()
        {
            _view.GetDataClientes = clienteBl.GetAllFromCliente();
        }

        public void BuscarCliente(string critero)
        {
            _view.GetDataClientes = clienteBl.GetFromClienteByRazonSocial(critero);
        }
    }
}
